export class systemconfig {
  id?: number;
  name = '';
  pid = 0
  path = ''
  type = ''
  url = ''
  extra = ''
  status = true
  sort = 1
  constructor(data?: systemconfig) {
    data && this.setProps(data);
  }

  setProps(data: systemconfig) {
    (Object.keys(this) as Array<keyof Isystemconfig>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key]
    })
  }
}

export type Isystemconfig = Omit<systemconfig, 'setProps'>